package com.xy.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xy.entity.Company;
import com.xy.mapper.CompanyMapper;
import com.xy.service.CompanyService;

@Service("companyService")
public class CompanyServiceImpl implements CompanyService {
	@Autowired
	private CompanyMapper companyMapper;

	public boolean addCompany(Company company) {

		return companyMapper.addCompany(company);
	}

	public boolean deleCompany(Company company) {

		return companyMapper.deleCompany(company);
	}

	public boolean updateCompanyByID(Company company) {
		boolean falg = companyMapper.updateCompanyByID(company);
		return falg;
	}

	public List<Company> selectCompanyList(Map map) {
		return companyMapper.selectCompanyList(map);
	}
}
